home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-PR / MPW / Examples / SIOWExamples / Makefile < prev   
Encoding:
Makefile  |  1998-12-10  |  1.9 KB  |  77 lines  |  [TEXT/MPS ]

  1. #   File:       Makefile
  2. #   Target:     count
  3. #   Sources:    Count.c
  4. #   Modified:    Wednesday, October 2, 1996 03:07:56 PM
  5.  
  6. MAKEFILE    = Makefile
  7. C            = SC
  8. PPCC        = MrC
  9.  
  10. •MondoBuild• = {MAKEFILE}  # Make blank to avoid rebuilds when makefile is modified
  11.  
  12. Includes     =
  13. ObjDir•68K   =
  14. ObjDir•PPC   =
  15.  
  16. Sym•68K      = -sym on 
  17. Sym•PPC      = -sym on 
  18.  
  19. COptions     = {Includes} {Sym•68K} -model far    # -i "{RINCLUDES}" (if needed to access SIOW.h)
  20. PPCCOptions  = {Includes} {Sym•PPC}               # -i "{RINCLUDES}" (if needed to access SIOW.h)
  21.  
  22. Objects•68K  = ∂
  23.         "{ObjDir•68K}Count.c.o"
  24.  
  25. Objects•PPC  = ∂
  26.         "{ObjDir•PPC}Count.c.x"
  27.  
  28. ###############################################################################
  29.  
  30. Count    ƒ    Count.68k   Count.ppc
  31.     Duplicate -y Count.68k {Targ}
  32.     MergeFragment Count.ppc {Targ}
  33.     Rez -a "{RIncludes}"SIOW.r  -d DEFAULT_SAVE_PREF=1 -o {Targ}
  34.  
  35. ###############################################################################
  36.  
  37. Count.68k ƒ {•MondoBuild•} {Objects•68K}
  38.     Link ∂
  39.         -o {Targ} -d {Sym•68K} ∂
  40.         {Objects•68K} ∂
  41.         -t 'APPL' ∂
  42.         -c 'siow' ∂
  43.         -mf ∂
  44.         -model far ∂
  45.         "{CLibraries}StdCLib.o" ∂
  46.         "{Libraries}SIOW.far.o" ∂
  47.         "{Libraries}MacRuntime.o" ∂
  48.         "{Libraries}IntEnv.o" ∂
  49.         "{Libraries}Interface.o"
  50.  
  51. ###############################################################################
  52.  
  53. Count.ppc    ƒ    {Objects•PPC}
  54.     PPCLink ∂
  55.         -o {Targ} {Sym•PPC} ∂
  56.         {Objects•PPC} ∂
  57.         -t 'APPL' ∂
  58.         -c 'siow' ∂
  59.         -mf ∂
  60.         "{PPCLibraries}PPCSIOW.o" ∂
  61.         "{PPCLibraries}MrCPlusLib.o" ∂
  62.         "{SharedLibraries}InterfaceLib" ∂
  63.         "{SharedLibraries}StdCLib" ∂
  64.         "{SharedLibraries}MathLib" ∂
  65.         "{PPCLibraries}PPCCRuntime.o" 
  66.  
  67. #         "{PPCLibraries}StdCRuntime.o"  not needed.
  68.  
  69. ###############################################################################
  70.  
  71. "{ObjDir•PPC}Count.c.x" ƒ {•MondoBuild•} Count.c
  72.     {PPCC} Count.c -o {Targ} {PPCCOptions}
  73.  
  74. "{ObjDir•68K}Count.c.o" ƒ {•MondoBuild•} Count.c
  75.     {C} Count.c -o {Targ} {COptions}
  76.  
  77.